From fac14af76431c9aa6a0217ad686ccf5c238991b2 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Fri, 6 Sep 2013 19:27:03 +0000 Subject: [PATCH] Correct allocation in xml_tag pseudo copy constructor. --- gpsbabel/xmltag.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/xmltag.cc b/gpsbabel/xmltag.cc index 810710b60..5e11276d1 100644 --- a/gpsbabel/xmltag.cc +++ b/gpsbabel/xmltag.cc @@ -74,7 +74,7 @@ copy_xml_tag(xml_tag** copy, xml_tag* src, xml_tag* parent) return; } - res = (xml_tag*) xcalloc(1, sizeof(xml_tag)); + res = new xml_tag; *copy = res; memcpy(res, src, sizeof(xml_tag)); -- 2.30.2